﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Wyse.Server.Base;

namespace Wyse.Server.Game
{
    /// <summary>
    /// Keeps names of server actions
    /// </summary>
    public static class ServerActions
    {
        public const String Fail = "Fail";
        public const String Welcome = "Welcome";

        /// <summary>
        /// Parameters for the Fail message
        /// </summary>
        [DataContract]
        [MessageData(Fail)]
        public class FailParams
        {
            public FailParams() { }
            public FailParams(String code)
            {
                Code = code;
            }

            [DataMember(Name = "code")]
            public String Code;
        }

        /// <summary>
        /// Parameters for the Welcome message
        /// </summary>
        [DataContract]
        [MessageData(Welcome)]
        public class WelcomeParams
        {
            [DataMember(Name="token")]
            public String Token;
        }
    }
}
